package org.yang.common.core.constant;

import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

/**
 * 系统常量
 *
 * @author: Islands
 * @create: 2024-02-29 10:23
 */


public interface SystemConstant {

    /**
     * http请求
     */
    String HTTP = "http://";
    /**
     * https请求
     */
    String HTTPS = "https://";

    /**
     * CryptoJS加密 key
     */
    String KEY_DES="d7b85f6e214abcde";

    /**
     * 储存token redis前缀
     */
    String TOKEN_PREFIX="authorize:";


    /**
     * 超级企业(不受任何限制)
     */
    Long SUPER_COMPANY=1L;

    /**
     * 超级角色(不受任何限制)
     */
    List<String> SUPER_ROLE = Collections.singletonList("root");

    Set<String> SUPER_AUTHORIZE= Collections.unmodifiableSet(Collections.singleton("*:*:*"));
}
